<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        textarea {
            font-size: 16px;
            border: 1px solid #ccc;
            outline: none;
            padding: 4px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div v-text='msg'></div>
        <!-- 它没有显示 -->
        <!-- <div v-text='info' v-pre></div> -->
        <div v-text='info' v-once></div>
        <textarea type="text" v-model='msg'></textarea>
    </div>
    <script src="js/vue.js"></script>
    <script>
        const vue = new Vue({
            el: '#app',
            data: {
                msg: 'hello vue',
                info: 'this is an info'
            }
        });
        /* vue.msg = '123';
        vue.info = '456'; */
    </script>
</body>

</html>